package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.QuestionDao;
import com.suke.czx.modules.examstack.exam.entity.QuestionEntity;
import com.suke.czx.modules.examstack.exam.service.QuestionService;



@Service("questionService")
public class QuestionServiceImpl implements QuestionService {
	@Autowired
	private QuestionDao questionDao;
	
	@Override
	public QuestionEntity queryObject(Integer id){
		return questionDao.queryObject(id);
	}
	
	@Override
	public List<QuestionEntity> queryList(Map<String, Object> map){
		return questionDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return questionDao.queryTotal(map);
	}
	
	@Override
	public void save(QuestionEntity question){
		questionDao.save(question);
	}
	
	@Override
	public void update(QuestionEntity question){
		questionDao.update(question);
	}
	
	@Override
	public void delete(Integer id){
		questionDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		questionDao.deleteBatch(ids);
	}
	
}
